package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PersonManageBean对象", description="人员管理")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "person_manage", resultMap = "BaseResultMap")
public class PersonManageBean extends Model<PersonManageBean> {

    private static final long serialVersionUID = -1771466246009069494L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "主键(道闸使用)")
    private int id;

    @ApiModelProperty(value = "用户身份证号")
    private String card;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "用户性别")
    private String sex;

    @ApiModelProperty(value = "用户生日")
    private Date birth;

    @ApiModelProperty(value = "所属单位或参建单位")
    private String orgId;

    @ApiModelProperty(value = "人员类型")
    private String type;

    @ApiModelProperty(value = "是否删除")
    private String ifDelete;

    @ApiModelProperty(value = "人脸照片")
    private String profilePicture;

    @ApiModelProperty(value = "健康证")
    private String healthCert;

    @ApiModelProperty(value = "账号ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String accountObjId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "数据来源（1-人工，2-导入）")
    private String dataSource;
}
